package ai.zixing.example01;

/**
 *
 * 具体装饰类
 */
public class ConcreteDecorator extends Decorator{
    public ConcreteDecorator(Component component) {
        super(component);
    }

    @Override
    public void operation() {
        super.operation();
        add();
    }

    // 新增方法
    public void add() {
        System.out.println("ConcreteDecorator1 doing");
    }
}
